package org.tinygroup.uiml.metadata;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

/**
 * 用于定义预定义风格
 * Created by luoguo on 2014/6/30.
 */
@XStreamAlias("style-type")
public final class StyleType {
	@XStreamAsAttribute
    private String name;
	@XStreamImplicit
    private List<PropertyType> propertyTypes;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<PropertyType> getPropertyTypes() {
    	if(propertyTypes==null){
    		propertyTypes=new ArrayList<PropertyType>();
    	}
        return propertyTypes;
    }

    public void setPropertyTypes(List<PropertyType> propertyTypes) {
        this.propertyTypes = propertyTypes;
    }
}
